﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace Comany.Core.Helper
{
    public static class MemoryHelper
    {
        [DllImport("kernel32.dll", EntryPoint = "RtZoroMemory", CharSet = CharSet.Ansi)]
        public static extern void ZeroMemory(IntPtr intPtr, long size);

        [DllImport("kernel32.dll", EntryPoint = "RtMoveMemory", CharSet = CharSet.Ansi)]
        public static extern void CopyMemory(IntPtr dest,IntPtr src, long length);
        [DllImport("kernel32.dll", EntryPoint = "RtFillMemory", CharSet = CharSet.Ansi)]
        public static extern void FillMemory(IntPtr dest, IntPtr src, long length);
    }
}
